package org.bjf.modules.sys.enums;

/**
 * @author bjf
 */
public interface AclEnum {

  /**
   * 权限主体类型
   *
   * @author bjf
   */

  enum PrincipalType {

    USER("user", "用户"),
    ROLE("role", "角色");

    private String type;
    private String desc;

    PrincipalType(String type, String desc) {
      this.type = type;
      this.desc = desc;
    }

    public String getType() {
      return type;
    }

    public String getDesc() {
      return desc;
    }
  }

  /**
   * 访问资源类型
   *
   * @author bjf
   */

  enum ResourceType {

    MENU("menu", "菜单资源"),
    CONTROLLER("controller", "controller资源");

    private String type;
    private String desc;

    ResourceType(String type, String desc) {
      this.type = type;
      this.desc = desc;
    }

    public String getType() {
      return type;
    }

    public String getDesc() {
      return desc;
    }
  }

}
